//
//  HEBindUserModel.m
//  HealthFamily
//
//  Created by 吴欧 on 2021/4/30.
//  Copyright © 2021 honglutec. All rights reserved.
//

#import "HEBindUserModel.h"

@implementation HEBindUserModel

- (NSString *)Kage {
    if (!_Kage) {
        NSString *age = [NSDate idCardDateToAge: _birth_date];
        if (age) {
            _Kage = [NSString stringWithFormat:@"%@岁", age];
        }else {
            _Kage = @"";
        }
    }
    return _Kage;
}

- (NSString *)KnameReal {
    if (!_KnameReal) {
        _KnameReal = [NSString stringWithFormat:@"%@(%@)", _realname, _relations];
    }
    return _KnameReal;
}

@end
